﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Gamemanager : MonoBehaviour {
	static public Gamemanager gamemanager;
	static  public int CurrentScore;
	static public  int Totalscore;
	public int Level=1;
	static public bool gamesSTR;


	// Use this for initialization
	void Awake () {
		if (gamemanager == null) {
			gamemanager = this;
		} else if (gamemanager != this) {
			Destroy(gameObject);
		}
		DontDestroyOnLoad(this.gameObject);

	}
	void OnLevelWasLoaded(int index){
		Level++;
		Totalscore = 0;
		CurrentScore = 0;

	}

		
	// Update is called once per frame
	void Update () {
		print (CurrentScore);
	}
}
